package cool.taomu.toolkit.provider

import com.google.common.cache.Cache
import com.google.common.cache.CacheBuilder
import com.google.inject.Provider
import java.util.concurrent.TimeUnit

class CacheProvider implements Provider<Cache<String, String>> {

	override get() {
		var Cache<String, String> c = CacheBuilder.newBuilder().expireAfterWrite(5, TimeUnit.MINUTES).build();
		return c;
	}
}
